.signup-form
  = form_for @user, url:users_path ,remote: true do |f|
    .ui.form
      .field
        .ui.left.icon.large.input
          = f.text_field :name, placeholder:'用户名'
          %i.user.icon
      .field
        .ui.left.icon.large.input
          = f.text_field :email, placeholder: '邮箱'
          %i.mail.icon
      .field
        .ui.left.icon.large.input
          = f.password_field :password, placeholder: '密码'
          %i.lock.icon
      .field
        .ui.left.icon.large.input
          = f.password_field :password_confirmation, placeholder: '请重新输入'
          %i.lock.icon
      = f.submit '注册',class:'ui fluid green large button',id:'signup'
